package com.reactim.message.dto;

import com.reactim.message.entity.Message;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 消息响应DTO
 */
@Data
public class MessageResponse {
    
    private String messageId;
    private Long fromUserId;
    private Long toUserId;
    private Long groupId;
    private String conversationId;
    private Message.MessageType messageType;
    private Message.MessageContent content;
    private Message.MessageExtra extra;
    private Message.MessageStatus status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Long sequence;
    
    // 扩展信息
    private Boolean isRead;             // 是否已读
    private Integer readCount;          // 已读人数
    private String senderNickname;      // 发送者昵称
    private String senderAvatarUrl;     // 发送者头像
}